<?php get_header(); ?>
	<!-- begin: main content area #main -->
		<div id="main">
			<!-- begin: #col1 - first float column -->
			<div id="col1">
				<div id="col1_content" class="clearfix"><a id="content" name="content"></a><!-- skiplink anchor: Content -->
<?php if (have_posts()) : ?>
				<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
				<?php /* If this is a category archive */ if (is_category()) { ?>
				<h3><?php printf(__('Archiv f&uuml;r die Kategorie &#8216;%s&#8217;', ''), single_cat_title('', false)); ?></h3>
				<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
				<h3><?php printf(__('Alle Beitr&auml;ge mit dem Tag &#8216;%s&#8217;', ''), single_tag_title('', false) ); ?></h3>
				<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
				<h3><?php printf(__('Archiv f&uuml;r den %s', ''), get_the_time(__('j. F Y', ''))); ?></h3>
				<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
				<h3><?php printf(__('Archiv f&uuml;r %s', ''), get_the_time(__('F Y', ''))); ?></h3>
				<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
				<h3><?php printf(__('Archiv f&uuml;r das Jahr %s', ''), get_the_time(__('Y', ''))); ?></h3>
				<?php /* If this is an author archive */ } elseif (is_author()) { ?>
				<h3><?php _e('Autor Archiv', ''); ?></h3>
				<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
				<h3><?php _e('Blog Archiv', ''); ?></h3>
				<?php } ?>
<?php while (have_posts()) : the_post(); ?>
					<div class="post" id="post-<?php the_ID(); ?>">
						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanenter Link zu <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
						<?php if ( $yamlconfig->di_getOptionValue('di_index_infotype') === 1 ) : ?>
						<p class="postinfo"><?php the_time('j. F Y'); ?> <?php  _e('von',''); ?> <?php the_author(); ?> | <?php comments_popup_link('kein Kommentar', '1 Kommentar', '% Kommentare', '', 'Kommentare sind abgeschaltet.'); ?> <?php edit_post_link('bearbeiten','| ',''); ?></p> 
						<?php endif; ?>
						<?php if ( $yamlconfig->di_getOptionValue('di_other_contenttype') === 1) :
						the_content('weiterlesen ...', '');
						else:
						the_excerpt(); ?>
						<p class="more-link"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('weiterlesen...',''); ?> <?php the_title(); ?>"><?php _e('weiterlesen ...',''); ?></a></p>
						<?php endif; ?>
						<hr />
					</div>
<?php endwhile; ?>
					<div class="pagination floatbox">
						<p class="float_right"><?php previous_posts_link(__('Neure Beitr&auml;ge &raquo;', '')) ?></p>
						<p class="float_left"><?php next_posts_link(__('&laquo; &Auml;ltere Beitr&auml;ge', '')) ?></p>
					</div>
<?php else :
				include (TEMPLATEPATH . '/nofound.php');
endif; ?>
				</div>
			</div>
			<!-- end: #col1 -->
			<?php include (TEMPLATEPATH . '/col_2.php'); ?>
			<?php include (TEMPLATEPATH . '/col_3.php'); ?>
			<?php get_footer(); ?>
